package com.jeesite.modules.dataScreen.enums;

import com.jeesite.modules.dataScreen.constants.CacheConstants;
import lombok.Getter;

import java.time.Duration;

@Getter
public enum CacheEnum {
    DEFAULT(CacheConstants.DEFAULT, Duration.ofSeconds(15));

    private final String name;
    private final Duration duration;

    CacheEnum(String name, Duration duration) {
        this.name = name;
        this.duration = duration;
    }
}
